package com.service.serviceImpl;

import com.dao.UserDao;
import com.entity.User;
import com.service.UserService;
import com.service.serviceImpl.base.BaseServiceImpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Administrator on 2018-9-27 0027.
 */
@Service
@Transactional
public class UserServiceImpl extends BaseServiceImpl<UserDao, User> implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User getById(Integer id) throws Exception {
        return super.getById(id);
    }

    @Override
    public boolean insert(User user) throws Exception {
        return super.insert(user);
    }

    @Override
    public boolean deleteById(Integer id) throws Exception {
        return super.deleteById(id);
    }

    @Override
    public boolean update(User user) throws Exception {
        return super.update(user);
    }

    @Override
    public List<User> getList(User user) throws Exception {
        return super.getList(user);
    }

    @Override
    public List<User> getAllList() {
        return userDao.selectAll();
    }

}
